﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _5._3.Models
{
    public class Shool
    {
        public string Name { get; set; }
        [Required(ErrorMessage = "学生姓名必填")]
        [StringLength(10,ErrorMessage ="学生姓名不能超过十个字")]
        public decimal height { get; set; }
        [Required(ErrorMessage = "学生身高必填")]
        [Range(50, 250, ErrorMessage = "学生身高在50~250CM之间")]
        public int Age { get; set; }
        [Required(ErrorMessage = "学生生日必填")]
        [Range(50,250,ErrorMessage ="学生身高在50~250CM之间")]
        public string email { get; set; }
    }
}